package leetcode.D200.T102;

import util.TreeNode;
import util.TreeUtil;

import java.util.List;

class M102 {
    public static void main(String[] args) {
        String data = "[3,9,20,null,null,15,7]";
        TreeNode root = TreeUtil.deserialize(data);
        List<List<Integer>> result = new Solution().levelOrder(root);
        for (List<Integer> list : result) {
            for (Integer x : list) {
                System.out.print(x + " ");
            }
            System.out.print("\n");
        }
    }
}
